﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace docent
{
    public interface IAction 
    {
        void Execute(Document document);
    }

    public class FlowAction
    {
        public long ID { get; set; }
        public string Name { get; set; }
        public string Executor { get; set; }

        public void Execute(Document document)
        {
            Type type = Type.GetType(Executor);
            IAction action = Activator.CreateInstance(type) as IAction;
            action.Execute(document);
        }
    }
}
